import { IsString } from "class-validator";
import { BaseEntity } from "../BaseEntity";
import { Model } from "sequelize";

export default class SlideshowEntity extends BaseEntity {
  id?: number;

  @IsString()
  public imgUrl: string;

  /**
   * 关联公司id
   */
  @IsString()
  public companyId: string;

  public static transform(plainObject: object): SlideshowEntity {
    return super.baseTransform(SlideshowEntity, plainObject);
  }
}

export interface ISlideshowModel extends Model<SlideshowEntity> {}
